// 商品相关接口
import http from "../common/http.js";

export default {
  //获取diy添加的商品列表
  getGoodsList: (data, needLoading) => {
    return http.GET("/diy/goods", data, needLoading);
  },
  //获取店铺列表
  getShopList: (data, needLoading) => {
    return http.GET("/diy/shop", data, needLoading);
  },
  // 根据id获取自定义页面的数据
  getDiyPage: (data, needLoading) => {
    return http.GET("/diy/template", data, needLoading);
  },
  //获取店铺列表
  getMchList: (data, needLoading) => {
    return http.GET("/diy/mch", data, needLoading);
  },
  //获取系统页面数据
  getSystemPage: (data, needLoading) => {
    return http.GET("/diy/template-unit", data, needLoading);
  },
  //获取客户端分类信息
  getCat: (data, needLoading) => {
    return http.GET("/diy/get-cat", data, needLoading);
  },
  //获取客户端分类信息
  getStore: (data, needLoading) => {
    return http.GET("/diy/get-store", data, needLoading);
  },
  //获取客户端分类信息
  getFoodsCatList: (data, needLoading) => {
    return http.GET("/diy/get-foods-cat-list", data, needLoading);
  },
  //获取diy添加的商品列表
  getFoodsList: (data, needLoading) => {
    return http.GET("/diy/get-foods-list", data, needLoading);
  },
  //获取diy添加的商品列表
  getWorkerGoods: (data, needLoading) => {
    return http.GET("/diy/get-worker-goods", data, needLoading);
  },
};
